<?php
namespace Jykj\Mass\Domain\Model;


/***************************************************************
 *
 *  Copyright notice
 *
 *  (c) 2017 WHB <wanghongbin@ngoos.org>, 极益科技
 *
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
 *  free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  The GNU General Public License can be found at
 *  http://www.gnu.org/copyleft/gpl.html.
 *
 *  This script is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  This copyright notice MUST APPEAR in all copies of the script!
 ***************************************************************/

/**
 * 群发明细记录
 */
class Log extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{

    /**
     * type
     *
     * 类型 邮件/短信
     * @var string
     */
    protected $type = '';
    
    /**
     * sender
     *
     * 发送者
     * @var string
     */
    protected $sender = '';
    
    /**
     * receiver
     *
     * 接收者
     * @var string
     */
    protected $receiver = '';
    
    /**
     * mailuid
     *
     * 邮件uid
     * @var int
     */
    protected $mailuid = 0;
    
    /**
     * smsuid
     *
     * 短信uid
     * @var int
     */
    protected $smsuid = 0;
    
    /**
     * suatus
     *
     * 发送状态
     * @var bool
     */
    protected $suatus = false;
    
    /**
     * message
     *
     * 错误原因
     * @var string
     */
    protected $message = '';

    /**
     * Returns the type
     *
     * @return string $type
     */
    public function getType()
    {
        return $this->type;
    }
    
    /**
     * Sets the type
     *
     * @param string $type
     * @return void
     */
    public function setType($type)
    {
        $this->type = $type;
    }
    
    /**
     * Returns the sender
     *
     * @return string $sender
     */
    public function getSender()
    {
        return $this->sender;
    }
    
    /**
     * Sets the sender
     *
     * @param string $sender
     * @return void
     */
    public function setSender($sender)
    {
        $this->sender = $sender;
    }
    
    /**
     * Returns the receiver
     *
     * @return string $receiver
     */
    public function getReceiver()
    {
        return $this->receiver;
    }
    
    /**
     * Sets the receiver
     *
     * @param string $receiver
     * @return void
     */
    public function setReceiver($receiver)
    {
        $this->receiver = $receiver;
    }
    
    /**
     * Returns the mailuid
     *
     * @return int $mailuid
     */
    public function getMailuid()
    {
        return $this->mailuid;
    }
    
    /**
     * Sets the mailuid
     *
     * @param int $mailuid
     * @return void
     */
    public function setMailuid($mailuid)
    {
        $this->mailuid = $mailuid;
    }
    
    /**
     * Returns the smsuid
     *
     * @return int $smsuid
     */
    public function getSmsuid()
    {
        return $this->smsuid;
    }
    
    /**
     * Sets the smsuid
     *
     * @param int $smsuid
     * @return void
     */
    public function setSmsuid($smsuid)
    {
        $this->smsuid = $smsuid;
    }
    
    /**
     * Returns the suatus
     *
     * @return bool $suatus
     */
    public function getSuatus()
    {
        return $this->suatus;
    }
    
    /**
     * Sets the suatus
     *
     * @param bool $suatus
     * @return void
     */
    public function setSuatus($suatus)
    {
        $this->suatus = $suatus;
    }
    
    /**
     * Returns the boolean state of suatus
     *
     * @return bool
     */
    public function isSuatus()
    {
        return $this->suatus;
    }

    /**
     * crdate
     *
     * @var integer
     */
    protected $crdate;
    
    /**
     * Get creation date
     *
     * @return integer
     */
    public function getCrdate() {
        return $this->crdate;
    }

    /**
     * Returns the message
     *
     * @return string $message
     */
    public function getMessage()
    {
        return $this->message;
    }
    
    /**
     * Sets the message
     *
     * @param string $message
     * @return void
     */
    public function setMessage($message)
    {
        $this->message = $message;
    }

}